import {wx} from '../../../../weixin2alipay/index.js';
import {Page,Component} from '../../../../weixin2alipay/index.js';
Page({
    "onShareAppMessage"(){
      return {
        "title":'form',
        "path":'page/component/pages/form/form'
};
    },
    "data":{
        "pickerHidden":true,
        "chosen":''
},
    "pickerConfirm"(e){
      this.setData({
        "pickerHidden":true
});
      this.setData({
        "chosen":e.detail.value
});
    },
    "pickerCancel"(){
      this.setData({
        "pickerHidden":true
});
    },
    "pickerShow"(){
      this.setData({
        "pickerHidden":false
});
    },
    "formSubmit"(e){
      console.log('form发生了submit事件，携带数据为：',e.detail.value);
    },
    "formReset"(e){
      console.log('form发生了reset事件，携带数据为：',e.detail.value);
      this.setData({
        "chosen":''
});
    }
});

